package com.bdqn.controller;

import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.web.bind.WebDataBinder;
import java.text.SimpleDateFormat;
import java.util.logging.Logger;

public class BaseController {
    private Logger logger = Logger.getLogger(this.getClass().getName());

    public void initBinder(WebDataBinder dataBinder) {
        logger.info("进入BaseController的initBinder方法");
        // 正确创建CustomDateEditor并注册
        CustomDateEditor dateEditor = new CustomDateEditor(new SimpleDateFormat("yyyy-MM-dd"), true);

    }
}
